package com.cy.detectsys.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 
 * @TableName probenode_resource
 */
@TableName(value ="probenode_resource")
@Data
public class ProbenodeResource implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 
     */
    private String taskProbenodeUser;

    /**
     * 
     */
    private String taskProbenodePassword;

    /**
     * 
     */
    private String taskProbenodeIp;

    /**
     * 
     */
    private Integer taskProbenodePort;

    /**
     * 
     */
    private String createUser;

    /**
     * 
     */
    private Date updateTime;

    /**
     * 
     */
    @TableLogic
    private Boolean deleted;

    /**
     * 
     */
    private Date createTime;

    /**
     * 
     */
    private String updateUser;

    /**
     * 
     */
    private String taskProbenodeStatusType;

    /**
     * 
     */
    private String taskProbenodeRemark;

    /**
     * 
     */
    private Date endTime;

    /**
     * 容器数量
     */
    private Integer taskProbenodeNum;

    /**
     * 记录节点下容器的编号排序
     */
    private Integer taskProbenodeDockerNum;

    /**
     * 
     */
    private Integer taskProbenodeEffective;

    /**
     * 
     */
    private String taskProbenodeProbeOccupationList;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        ProbenodeResource other = (ProbenodeResource) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getTaskProbenodeUser() == null ? other.getTaskProbenodeUser() == null : this.getTaskProbenodeUser().equals(other.getTaskProbenodeUser()))
            && (this.getTaskProbenodePassword() == null ? other.getTaskProbenodePassword() == null : this.getTaskProbenodePassword().equals(other.getTaskProbenodePassword()))
            && (this.getTaskProbenodeIp() == null ? other.getTaskProbenodeIp() == null : this.getTaskProbenodeIp().equals(other.getTaskProbenodeIp()))
            && (this.getTaskProbenodePort() == null ? other.getTaskProbenodePort() == null : this.getTaskProbenodePort().equals(other.getTaskProbenodePort()))
            && (this.getCreateUser() == null ? other.getCreateUser() == null : this.getCreateUser().equals(other.getCreateUser()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
            && (this.getDeleted() == null ? other.getDeleted() == null : this.getDeleted().equals(other.getDeleted()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getUpdateUser() == null ? other.getUpdateUser() == null : this.getUpdateUser().equals(other.getUpdateUser()))
            && (this.getTaskProbenodeStatusType() == null ? other.getTaskProbenodeStatusType() == null : this.getTaskProbenodeStatusType().equals(other.getTaskProbenodeStatusType()))
            && (this.getTaskProbenodeRemark() == null ? other.getTaskProbenodeRemark() == null : this.getTaskProbenodeRemark().equals(other.getTaskProbenodeRemark()))
            && (this.getEndTime() == null ? other.getEndTime() == null : this.getEndTime().equals(other.getEndTime()))
            && (this.getTaskProbenodeNum() == null ? other.getTaskProbenodeNum() == null : this.getTaskProbenodeNum().equals(other.getTaskProbenodeNum()))
            && (this.getTaskProbenodeDockerNum() == null ? other.getTaskProbenodeDockerNum() == null : this.getTaskProbenodeDockerNum().equals(other.getTaskProbenodeDockerNum()))
            && (this.getTaskProbenodeEffective() == null ? other.getTaskProbenodeEffective() == null : this.getTaskProbenodeEffective().equals(other.getTaskProbenodeEffective()))
            && (this.getTaskProbenodeProbeOccupationList() == null ? other.getTaskProbenodeProbeOccupationList() == null : this.getTaskProbenodeProbeOccupationList().equals(other.getTaskProbenodeProbeOccupationList()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getTaskProbenodeUser() == null) ? 0 : getTaskProbenodeUser().hashCode());
        result = prime * result + ((getTaskProbenodePassword() == null) ? 0 : getTaskProbenodePassword().hashCode());
        result = prime * result + ((getTaskProbenodeIp() == null) ? 0 : getTaskProbenodeIp().hashCode());
        result = prime * result + ((getTaskProbenodePort() == null) ? 0 : getTaskProbenodePort().hashCode());
        result = prime * result + ((getCreateUser() == null) ? 0 : getCreateUser().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        result = prime * result + ((getDeleted() == null) ? 0 : getDeleted().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getUpdateUser() == null) ? 0 : getUpdateUser().hashCode());
        result = prime * result + ((getTaskProbenodeStatusType() == null) ? 0 : getTaskProbenodeStatusType().hashCode());
        result = prime * result + ((getTaskProbenodeRemark() == null) ? 0 : getTaskProbenodeRemark().hashCode());
        result = prime * result + ((getEndTime() == null) ? 0 : getEndTime().hashCode());
        result = prime * result + ((getTaskProbenodeNum() == null) ? 0 : getTaskProbenodeNum().hashCode());
        result = prime * result + ((getTaskProbenodeDockerNum() == null) ? 0 : getTaskProbenodeDockerNum().hashCode());
        result = prime * result + ((getTaskProbenodeEffective() == null) ? 0 : getTaskProbenodeEffective().hashCode());
        result = prime * result + ((getTaskProbenodeProbeOccupationList() == null) ? 0 : getTaskProbenodeProbeOccupationList().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", taskProbenodeUser=").append(taskProbenodeUser);
        sb.append(", taskProbenodePassword=").append(taskProbenodePassword);
        sb.append(", taskProbenodeIp=").append(taskProbenodeIp);
        sb.append(", taskProbenodePort=").append(taskProbenodePort);
        sb.append(", createUser=").append(createUser);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", deleted=").append(deleted);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateUser=").append(updateUser);
        sb.append(", taskProbenodeStatusType=").append(taskProbenodeStatusType);
        sb.append(", taskProbenodeRemark=").append(taskProbenodeRemark);
        sb.append(", endTime=").append(endTime);
        sb.append(", taskProbenodeNum=").append(taskProbenodeNum);
        sb.append(", taskProbenodeDockerNum=").append(taskProbenodeDockerNum);
        sb.append(", taskProbenodeEffective=").append(taskProbenodeEffective);
        sb.append(", taskProbenodeProbeOccupationList=").append(taskProbenodeProbeOccupationList);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}